import 'package:ble_helper_plugin/library.dart';
import 'package:bluetooth_protocols_plugin/library.dart';
import '../../library.dart';
import '../helper/message_send_helper.dart';
import '../helper/encrypt_decryt_helper.dart';

// Huari发送助手
abstract class HuariSendHelper<I_private extends HuariPrivateIntructionMessage>
    extends MessageSendHelper {
  // 私有指令
  I_private get privateInstrMessage;

  // 共有指令
  final HuariPublicInstructionMessage publicInstrMessage =
      HuariPublicInstructionMessage();

  // 蓝牙助手
  @override
  BluetoothSendHelper<BluetoothInterceptor, HandlerSettingsBase>
      get bleSendHelper => BluetoothSendHelper(HuariHandlerSettings());

  // 加解密助手
  @override
  EncryptDecryptHelper<CryptoBase> get encryptDecryptHelper =>
      EncryptDecryptHelper(HuariCrypto());
}
